Skip to content

Change instances of Teacher to Instructor#4

Merged
jody merged 4 commits into
mainfrom
Teacher2Instructor
Jun 14, 2026
Merged

Change instances of Teacher to Instructor#4
jody merged 4 commits into
mainfrom
Teacher2Instructor

Conversation

@jody

@jody jody commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Closes #1

@jody jody self-assigned this Jun 14, 2026
@jody jody requested a review from Copilot June 14, 2026 22:28
@jody jody added the enhancement New feature or request label Jun 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to implement Issue #1 by renaming the educator-facing terminology from “Teacher” to “Instructor” across the app (UI/docs/implementation).

Changes:

  • Renames the dashboard component to InstructorPage and updates its role-guard to check for role === "instructor".
  • Updates routing to serve the dashboard at /instructor and updates README wording/env var naming accordingly.
  • Includes regenerated build output under dist/ (but it still contains “Teacher” strings) and an unintended Vite artifact under node_modules/.

Reviewed changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/pages/InstructorPage.jsx Renames page component + changes role check to instructor.
src/App.jsx Switches dashboard route/import from teacher to instructor.
README.md Updates wording and env var name to “instructor”.
node_modules/.vite/deps/_metadata.json Generated Vite artifact (should not be committed).
dist/index.html Updates built bundle reference.
dist/assets/index-HXjiAoNO.js Built bundle; still contains “Teacher” role/UI strings and /teacher navigation.
Comments suppressed due to low confidence (1)

src/pages/InstructorPage.jsx:52

  • This guard checks for role === "instructor", but RoleSelector currently sets role="teacher" and navigates to "/teacher" (src/pages/RoleSelector.jsx:25-27). As-is, even a valid login will immediately redirect away from the dashboard.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/App.jsx
Comment on lines 23 to 25
<Route path="/" element={<RoleSelector />} />
<Route path="/teacher" element={<TeacherPage />} />
<Route path="/instructor" element={<InstructorPage />} />
<Route path="/student" element={<StudentPage />} />
Comment thread README.md
Comment on lines 140 to 152
@@ -148,7 +148,7 @@ VITE_FIREBASE_STORAGE_BUCKET=your_project.firebasestorage.app
VITE_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
VITE_FIREBASE_APP_ID=your_app_id

VITE_TEACHER_PASSWORD=your_password_here
VITE_INSTRUCTOR_PASSWORD=your_password_here
```
Comment on lines 7 to 12
"react": {
"src": "../../react/index.js",
"file": "react.js",
"fileHash": "4c5b97b1",
"fileHash": "62626146",
"needsInterop": true
},
@jody jody merged commit ab89bb5 into main Jun 14, 2026
1 check passed
@jody jody deleted the Teacher2Instructor branch June 14, 2026 22:47
jody added a commit that referenced this pull request Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change "Teacher" to "Instructor"

2 participants